Quiz: Collection Types
Test your understanding of different collection types in Go.
15
Lets say a map is used to store and retrieve information about users that are currently logged in on the Go server. Since reads and writes to that map would happen from multiple concurrent goroutines, which of the following is a good option in such a case?
Your Answer
A)sync.Map
Correct Answer
B)Regular map with locking
C)
Both are equally good.
D)
None of the above.
Question 15 of 1515 attempted
Solution: Map Access
Loops